<div id="content">
    <div id="title_content">Actualité</div>
    <?php if ($this->session->flashdata('error')): ?>
        <div class="affiche_erreur">
        <?php echo $this->session->flashdata('error'); ?>
    </div>
    <?php endif; ?>
    <form method="POST" action="<?php echo site_url('admin_news/delete_multi_news')?>"  onsubmit="return go();">
            <table class="list" width="100%">
                <thead>
                    <tr>
                        <th width="20px"><input type="checkbox" name="deleteall" id="deleteall"/></th>
                        <th><?php echo lang('title'); ?></th>
                        <th><?php echo lang('description')?></th>
                        <th><?php echo lang('user_post')?></th>
                        <th><?php echo lang('post_at')?></th>
                        <th><?php echo lang('active')?></th>
                        <th><?php echo lang('company')?></th>
                        
                        <th colspan="2">Action</th>
                    </tr>
                </thead>
                <tbody>
                <?php 
                if(isset($news_data) && !empty($news_data)):
                foreach($news_data as $aRows):?>
 
                    <tr>
                    	<td><input type="checkbox" name="delete[]" value="<?php echo $aRows['id'] ?>" class="delete" /></td>
            			<td width=25%><?php echo $aRows['title']; ?></td>
                        <td width=25%><?php echo $aRows['description']; ?></td>
                        <td width="10%"><?php echo $aRows['user_name']; ?></td>
                        <td width="15%"><?php echo $aRows['post_time']; ?></td>
                        <td width="10%"><?php echo $aRows['active']; ?></td>
                        <td><?php echo $aRows['company_name']; ?></td>
                     
                     
                       
                        <td width="30px"><a href="<?php echo site_url('admin_news/modifier_actualite/' . $aRows['id']) ?>"><img src="<?php echo base_url() ?>assets/admin/images/modifier.png" alt="modifier"/></a></td>
                        <?php if($this->session->userdata("role_id") == 1):?>
                        <td width="30px"><a class="confirm_delete" href="<?php echo site_url('admin_news/supprimer_actualite/' . $aRows['id']) ?>"><img src="<?php echo base_url() ?>assets/admin/images/supprimer.png" alt="supprimer"/></a></td>
                    	<?php endif;?>
                    </tr>
                <?php endforeach; ?>
                <?php endif; ?>
                </tbody>
            </table>
            
            <div class="delete_button">
                <table width="100%">
                    <tr>
                       	<td align="left" width="200px" ><input type="submit" value="<?php echo lang('delete')?>" name="submit" OnClick= "return confirm('Vous êtes sur?');"/></td>
                        <td align="right"><?php echo $pagination; ?></td>
                </tr>
            </table>
        </div>
        </form>
        <!--END delete_button-->
    
</div>
<!--END content-->
